package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.SysCourse;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

// 课程mapper
public interface SysCourseMapper {
    List<SysCourse> selectCourseList(SysCourse sysCourse);

    SysCourse selectById(Long courseId);

    int insert(SysCourse sysCourse);

    int update(SysCourse sysCourse);

    SysCourse selectOneByUserId(Long userId);

    List<SysCourse> selectDateAfterByUserId(@Param("createTime")Date createTime, @Param("userId") Long userId);

    int deleteById(Long curseId);

}
